home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / std / c++ / 177 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  1.2 KB

  1. Path: engnews1.Eng.Sun.COM!taumet!clamage
  2. From: nk@lns598.lns.cornell.edu (Nobuhiko Katayama)
  3. Newsgroups: comp.std.c++
  4. Subject: friend inline vs inline friend
  5. Date: 25 Jan 1996 16:12:11 GMT
  6. Organization: Wilson Lab, Cornell U., Ithaca, NY  14853
  7. Sender: nk@lnscu1.lns.cornell.edu
  8. Approved: clamage@eng.sun.com (comp.std.c++)
  9. Message-ID: <sc68e0s5bn.fsf@lnscu1.lns.cornell.edu>
  10. NNTP-Posting-Host: taumet.eng.sun.com
  11. Content-Type: text
  12. X-Nntp-Posting-Host: lnscu1.lns.cornell.edu
  13. X-Newsreader: Gnus v5.1
  14. Content-Length: 497
  15. X-Lines: 18
  16. Originator: clamage@taumet
  17.  
  18. Hi experts,
  19.  
  20.     Where in the draft standard, if any, says one can use (in the
  21. class declaration),
  22.  
  23. friend inline void a(A&);
  24.  
  25. but not
  26.  
  27. inline friend void a(A&);
  28.  
  29. ? I have been discussing with a compiler engineer who somehow seems to
  30. think the above is true and makes the latter illegal. I cannot find any
  31. place in the draft that says I cannot use the latter syntax. However, I
  32. noticed that libg++ has changed "inline friend" to "friend inline" in its 
  33. String class.
  34.     Thank you for your help.
  35.         Nobu
  36.  
  37. [ comp.std.c++ is moderated.  Submission address: std-c++@ncar.ucar.edu.
  38.   Contact address: std-c++-request@ncar.ucar.edu.  The moderation policy
  39.   is summarized in http://dogbert.lbl.gov/~matt/std-c++/policy.html. ]
  40.  
  41.